package com.nCoV.EpidemicSurveillance.service;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.nCoV.EpidemicSurveillance.domain.DemoNode;
import com.nCoV.EpidemicSurveillance.repository.demoRepository;

/**
 * @author 罗穆健
 * @date 2020年3月3日
 */
@Service
public class DemoService {

	@Autowired
    private demoRepository demoRepository;

    public int addUser(DemoNode demoNode) {
//    	demoRepository.addUserNodeList(demoNode.getName());
    	demoRepository.addUser();
    	demoRepository.addRelation();
        return 1;
    }
    public  List<DemoNode> getUserNodeList() {
        return demoRepository.getUserNodeList();
    }
}
